<?php
/**
 *  view: moderator team list
 *  File: moderators/all_team_list.php
 */



if( count($moderator_teams)>0 )
{
  foreach ($moderator_teams as $row)
  {        
    echo "<tr id='team_row_{$row->id}' onclick='javascript: select_team({$row->id})' >\n";      
      echo "<td>{$row->id}</td>\n";    
      echo "<td>{$row->name}</td>\n";
      
      $checked = ($row->active == 1)?" checked ":"";
	  echo "<td align='center'> <input type='checkbox' name='active' id='active_{$row->id}' alt='{$row->id}' onclick='javascript:change_active({$row->id},\"teams\")' value={$row->active} {$checked} /> </td>";

      echo "<td>{$row->timestamp}</td>\n";  
    echo "</tr>\n\n";
  }
} 
else
{
  echo "<tr><td>".lang('no_teams')."</td></tr>";
}

?>